#define BUFFERSIZE      1024 
#define NAMESIZE        32       

struct chat_message {
   int type;
   char data[BUFFERSIZE];
};

#define REGISTER        1
#define UNREGISTER      2
#define MESSAGE         3
#define NAMELIST        4
